// 网点财务
import request from '@/utils/request'

// ------------------------------
// 人效统计分析页面
// 工资发放总额
export const monthSalaryamount = () =>
  request.get('/network/manEffectStatistic/grossPayroll')

// ------------------------------

// --------------------------------
// 统计中心
// 查询客户配置列表
export const getkhlist = () =>
  request.get('/sc/contractAreaSendCostCalculate/selectClient')
//查询子客户配置列表
export const getChildKhList = () => request.get('/sc/contractAreaSendCostCalculate/selectChildClient')
// 查询子客户表格数据
export const getChildTableData = (data) => request.post('/sc/outReturnSheet/selectChild', data)

// 根据客户查配置价格
export const getkhprice = (id) =>
  request.get(`/sc/contractAreaSendCostCalculate/selectByName?id=${id}`)
// 修改客户配置
export const xgkhparams = (obj) =>
  request.post('/sc/contractAreaSendCostCalculate/updateClient', obj)
export const packageGrossProfitinit = (obj) =>
  request.post('/sc/outPortWarehouseGrossProfitSheet/collect', obj)

export const OutboundGrossProfitinit = (obj) =>
  request.post('/sc/outReturnSheet/collect', obj)

export const paymentsReportinit = (obj) =>
  request.post('/sc/hqIncomeAndExpend/collect', obj)

export const ContractingAreainit = (obj) =>
  request.post('/sc/contractAreaSendCostCalculate/collect', obj)

export const QualityControlCostsinit = (obj) =>
  request.post('/sc/qualityControlFee/collect', obj)

export const InboundGrossProfitinit = (obj) =>
  request.post('/sc/paiGrossProfitSheet/collect', obj)
// 获取根据出港返利毛利客户配置名字id获取参数
export const getcgflmlkhparams = (id) =>
  request.get('/sc/outReturnSheet/selectClientById?id=' + id)
// 确定修改出港返利毛利客户配置
export const comfigupdatekhparams = (obj) =>
  request.post('/sc/outReturnSheet/updateClient', obj)
export const FlowDirectioninit = (obj) =>
  request.post('/sc/monitoring/collect', obj)
// 查询均重流向配置参数"
export const selectDisposition = () =>
  request.get('/sc/monitoring/selectDisposition')
// 修改均重流向配置参数
export const updateDisposition = (obj) =>
  request.post('/sc/monitoring/updateDisposition', obj)
// 查询包仓毛利配置参数"
export const selectOutDisposition = (obj) =>
  request.get('/sc/outPortWarehouseGrossProfitSheet/selectDisposition', obj)
// 修改包仓毛利配置参数
export const updateOutDisposition = (obj) =>
  request.post('/sc/outPortWarehouseGrossProfitSheet/updateDisposition', obj)
// 查询承包区配置列表"
export const selectSendDisposition = (contractAreald) =>
  request.get('/sc/contractAreaSendCostCalculate/selectSendDisposition/' + contractAreald)
// 修改承包区配置列表
export const updateSendDisposition = (obj) =>
  request.post('/sc/contractAreaSendCostCalculate/update', obj)
// 查询承包区配置列表"
export const outReturnSheetSelectAll = () =>
  request.get('/sc/outReturnSheet/selectAll')
// 修改承包区配置列表
export const outReturnSheetUpdate = (obj) =>
  request.post('/sc/outReturnSheet/update', obj)
// 查询质控费用汇总配置
export const qualityControlFeeSearch = (obj) =>
  request.post('/sc/qualityControlFee/search', obj)
// 修改质控费用配置列表
export const qualityControlFeeUpdate = (obj) =>
  request.post('/sc/qualityControlFee/update', obj)
// 客户账单核销表
// 查询
export const BillWriteOffinit = (obj) => request.post('/sc/debt/list', obj)
// 新增
export const BillWriteOffadd = (obj) => request.post('/sc/debt/add', obj) // 预留

// 总部系统总部账单
export const HeadquartersBillsinit = (obj) =>
  request.post('/sc/hqSysHqBill/collectOne', obj)
// 总部系统总部账单
export const HeadquarterscollectTwo = (obj) =>
  request.post('/sc/hqSysHqBill/collectTwo', obj)
// 查询负债列表
export const liabilities = (obj) =>
  request.post('/statisticalCenter/liabilities/list', obj)
// 现金流水统计
export const CashFlowWaterinit = (obj) =>
  request.post('/sc/cashFlow/list', obj)
// 面单充值
export const RechargeSheetinit = (obj) =>
  request.post('/sc/recharge/list', obj)
// 承包区汇款汇总
export const PaymentSummaryinit = (obj) =>
  request.post('/sc/remittance/list', obj)
// 预估费用
export const GetYgfyList = (data) =>
  request.post('/statisticalCenter/cost/list', data)
// 查询所有客户
export const GetclientRelation = () =>
  request.get('/hq/clientRelation/selectAll')

// 进港派件毛利报表承包区参数配置列表
export const Getcblist = () =>
  request.get('/sc/paiGrossProfitSheet/networkList')

// 进港派件毛利报表承包区参数配置修改
export const Getupdatecs = (data) =>
  request.post('/sc/paiGrossProfitSheet/update', data)
// 进港派件毛利报表承包区参数配置根据id查数据
export const Getupdateidlist = (id) =>
  request.get(`/sc/paiGrossProfitSheet/findById?id=${id}`)
